package hausaufgabe04;

public class Account
{
  private int balance;
  
  public Account(int startBalance)
  {
    balance = startBalance;
  }
  public Account()
  {}
  
  public int getBalance()
  {
    return balance;
  }
  public void withdraw(int amount)
  {
    balance -= amount;
  }
  public void deposit(int amount)
  {
    balance += amount;
  }
}
